<div class="container" style="padding-top: 50px;">
	<div class="row clearfix">
		<div class="col-md-12 column">
			<form class="form-horizontal" role="form" action="{:U('Order/doupdate')}" method="post">
				<input type="hidden" name="id"  value="{$info.id}" id="id" />
				
				<div class="form-group">
					 <label for="inputEmail3" class="col-sm-2 control-label">用户:</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" id="nickname" name="nickname" value="{$info.nickname}" disabled />
					</div>
				</div>

				<div class="form-group">
					 <label for="inputEmail3" class="col-sm-2 control-label">支付单号:</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" id="pay_code" name="pay_code" value="{$info.pay_code}" disabled/>
					</div>
				</div>
				<div class="form-group">
					 <label for="inputEmail3" class="col-sm-2 control-label">订单编号:</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" id="code" name="code" value="{$info.code}" disabled/>
					</div>
				</div>
				
				<div class="form-group">
					 <label for="inputEmail3" class="col-sm-2 control-label">收货人:</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" id="c_name" name='c_name' value="{$info.c_name}"/>
					</div>
				</div>
				<div class="form-group">
					 <label for="inputEmail3" class="col-sm-2 control-label">收货人电话:</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" id="c_phone" name="c_phone" value="{$info.c_phone}"/>
					</div>
				</div>
				<div class="form-group">
					 <label for="inputEmail3" class="col-sm-2 control-label">收货人地址:</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" id="c_addr" name="c_addr" value="{$info.c_addr}"/>
					</div>
				</div>
				<div class="form-group">
					 <label for="inputEmail3" class="col-sm-2 control-label">总价:</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" id="cprice" name="cprice" value="{$info.cprice}"/>
					</div>
				</div>
				<div class="form-group">
					 <label for="inputEmail3" class="col-sm-2 control-label">物流状态:</label>
					<div class="col-sm-5">
						<select name="wu_status">
								<option value='0' <?php echo  $info['wu_status']==0?'selected':'' ?>>待发货</option>
								<option value='1' <?php echo  $info['wu_status']==1?'selected':'' ?>>已发货</option>
						</select>
					</div>
				</div>
				<input type="hidden" name="pay_status" id="pay_status" value="{$info.pay_status}">
				<!-- <div class="form-group">
					 <label for="inputEmail3" class="col-sm-2 control-label">属性:</label>
					<div class="col-sm-5">
						<select>
							<volist name="attrInfo" id="data">
			
								<option value="{$data.id}" <?php echo  $data['']==0?'selected':'' ?> >{$data.name}</option>
							
							</volist>
						</select>
					</div>
				</div>
				 -->
				<div class="form-group">
					<div class="col-sm-offset-2 col-sm-10">
						 <button type="submit" class="btn btn-primary button" id="baocun">保存</button>
					</div>
				</div>
				
			</form>
		</div>
</div>
<script>
	$("#baocun").click(function(){
		var pay_status = $("#pay_status").val();
		if(pay_status != 1){
			alert("请确认订单已经支付");
			return false;
		}
	})

</script>
